﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

public partial class Admin_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if(!IsPostBack){
            if (Request.IsAuthenticated)
            {
                lblAdminName.Text = "Admin: " + Session["login"].ToString();
                lblAdminName.Visible = true;
                hplLoginLogout.Text = "Logout";
                hplLoginLogout.NavigateUrl = "logout.spx";
                hplLoginLogout.NavigateUrl = "Logout.aspx";
            }
            else
            {
                lblAdminName.Visible = false;
                hplLoginLogout.Text = "Login";
                hplLoginLogout.NavigateUrl = "Login.aspx";
                
            }
        }
    }
}